package com.CMUBiS.util;

/**
 * This class holds the information to link to an image (not the image data itself)
 * 
 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
 * @version 0.1
 * @since 0.1
 * @date 04/04/2011
 */
public class Image {
	// Variables to hold the image data
	private int position;
	private String url;
	private String description;
	
	/**
	 * Create a nre Image with all of the required information
	 * @param position
	 * @param url
	 * @param description
	 */
	public Image(int position, String url, String description){
		this.position = position;
		this.url = url;
		this.description = description;
	}
	
	/**
	 * Returns the position of the image. The position is the order they will be displayed
	 * 
	 * @return int the position of the image
	 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
	 */
	public int getPosition(){
		return this.position;
	}
	
	/**
	 * Returns the URL needed to load the image
	 * 
	 * @return String the URL needed to load the image
	 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
	 */
	public String getUrl(){
		return this.url;
	}
	
	/**
	 * Returns the alt description of the image
	 * 
	 * @return String the alt description of the image
	 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
	 */
	public String getDescription(){
		return this.description;
	}
}
